<?php
namespace app\index\controller;
use app\index\Lib\Weixin;
class Index extends Base
{
    public function index()
    {
      $weixin = new Weixin("wx78421f21ad5398e1","VBtg6sr-RASByoUz4JAo8l-diZ7ptUCSPDnZBxxiNcESuaz3y4ihqktEgYWi2cwM",1000003);
      //$deptlist = $weixin->getDeptList();
      //dump($deptlist);
      //exit();
      return $this->fetch(":user_list");
    }
    
    public function makeurl(){
        $weixin = new Weixin();
        echo $weixin->OAuthUrl("crm.zzsmsc.cn:8080".url('custom/add'));
    }
}
